import { ts, rule } from "qvog-dsl";

const SEVERITY = 2;
const DOC_PATH = 'docs/no-non-null-assertion-check.md';
const DESCRIPTION = 'Disallow non-null assertions using the ! postfix operator.';

export default rule()
    .match((node): node is ts.NonNullExpression => {
        return ts.isNonNullExpression(node);
    })
    .report({
        severity: SEVERITY,
        description: DESCRIPTION,
        docPath: DOC_PATH,
    });